Description:

Adds the elements of the specified collection to the end of the List.

Syntax:
public void AddRange(
IEnumerable<T> collection
)
Parameters:
  • collection
  • Type: IEnumerable<T>
  • The collection whose elements should be added to the end of the List. The collection itself cannot be a None reference (Nothing in Visual Basic), but it can contain elements that are a None reference (Nothing in Visual Basic), if type T is a reference type.
Returns:
Type: void

Description:

Adds the elements of the specified collection to the end of the List.

Syntax:
public void AddRange(
IEnumerable collection
)
Parameters:
  • collection
  • Type: System.Collections.IEnumerable
  • The collection whose elements should be added to the end of the List. The collection itself cannot be a None reference (Nothing in Visual Basic), but it can contain elements that are a None reference (Nothing in Visual Basic). Objects in collection which cannot be represented as T will throw exceptions.
Returns:
Type: void

Nothing found